package com.qyhl.webtv.module_user.setting.cancel;

public class UserCancelPresenter implements UserCancelContract.UserCancelPresenter {
    private UserCancelActivity mView;

    private UserCancelModel mModel;

    UserCancelPresenter(UserCancelActivity mView) {
        this.mView = mView;
        this.mModel = new UserCancelModel(this);
    }

    @Override
    public void getCode(String phone) {
        mModel.getCode(phone);
    }

    @Override
    public void cancelAccount(String phone, String code) {
        mModel.cancelAccount(phone, code);
    }

    @Override
    public void codeSuccess() {
        mView.codeSuccess();
    }

    @Override
    public void codeError(String msg) {
        mView.codeError(msg);
    }

    @Override
    public void cancelSuccess() {
        mView.cancelSuccess();
    }

    @Override
    public void cancelError(String msg) {
        mView.cancelError(msg);
    }
}
